package com.xjtu.conan.service;

import com.xjtu.conan.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface UserInfoService extends IService<UserInfo> {
    public List<UserInfo> getAllUser(int current, int size);

    public UserInfo getUserByid(Long uid);

    public Long addUser(MultipartFile image, UserInfo user) throws IOException;

    public Long updateUser(MultipartFile image, UserInfo user);

    public int deleteUser(Long uid);

    public UserInfo getUserByPhone(String phone);

    public int getTotal();
}
